#ifndef CHATHISTROYLIB_H
#define CHATHISTROYLIB_H

#include <QObject>
#include <QList>
#include <QPair>
class ChatHistroyLib : public QObject
{
    Q_OBJECT
public:
    static ChatHistroyLib* getInstance();
    void setOC(QString oc);
    QString getOC();
    QList<QPair<bool,QString>>& getChatHistroyList();
signals:
    void s_chatHistroyPageDone();
public slots:

    void recvChatHistroyPage(const QList<QPair<bool,QString>>&);
private:
    ChatHistroyLib();
    static ChatHistroyLib* chatlib;
    QList<QPair<bool,QString>> chathistorylist;
    QString oc;
};

#endif // CHATHISTORYLIB_H
